var win = Titanium.UI.currentWindow;

var basicSwitchLabel = Titanium.UI.createLabel({
	text:'Basic Switch value = false' ,
	color:'#999',
	font:{
		fontFamily:'Helvetica Neue',
		fontSize:15
	},
	textAlign:'center',
	top:10,
	height:'auto'
});

var basicSwitch = Titanium.UI.createSwitch({
	value:false,
	top:30
});

basicSwitch.addEventListener('change',function(e)
{
	basicSwitchLabel.text = 'Basic Switch value = ' + e.value + ' act val ' + basicSwitch.value;
});

var button = Titanium.UI.createButton({
	title:'Button',
	height:40,
	width:200,
	top:100
});

win.add(basicSwitchLabel);
win.add(basicSwitch);
win.add(button);
